package com.yenlien.traceyun.business.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * Created by LiuSha on 2020/7/28.
 * 设备管理
 */
@Entity
@Table(name = "t_equipment")
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class Equipment extends TraceEntity {
    @Column
    private String type;//设备类型    摄像机  土壤墒情  水质设备  气象传感    虫情监控   杀虫灯  无人机(VR)  电磁阀    驱鸟器
    @Column
    private String name;//设备名称
    @Column
    private String model;//设备型号
    @Column
    private String manufacturer;//设备厂商
    @Column
    private String username;//用户名称
    @Column
    private String password;//密码
    @Column
    private String rtsp;//rtsp端口

    private String rtspHd; // rtsp高清  或者VR播放地址

    private String updateTime; // 更新时间
    @Column(name = "`group`")
    private String group; // 分组

    @Column
    private String http;//http端口
    @Column
    private String ip;//ip
    @Column
    private String service;//服务端口
    @Column
    private String channel;//通道号
    @Column
    private String purchaseTime;//购买时间
    @Column(unique = true)
    private String serial;//序列号

    private String wulianNo;//物联网号

    private String appKey;
    private String appSecret;

//    @Transient
    private String coordinate;  // 坐标
    @Transient
    private String massifId;  // 地块ID



    private String baseSoil;  // 该设备部署的点ID   德格摄像头此字段做地块名称


    @Transient
    private String accessToken; // 该设备Token
    @Transient
    private String status;  // 在线状态：0-不在线，1-在线   2(报警,山东仁科)  3(预警,山东仁科)
    @Transient
    private String heartbeatTime;       // 心跳时间



    public String getSerial() {
        return serial;
    }

    public void setSerial(String serial) {
        this.serial = serial;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getManufacturer() {
        return manufacturer;
    }

    public void setManufacturer(String manufacturer) {
        this.manufacturer = manufacturer;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRtsp() {
        return rtsp;
    }

    public void setRtsp(String rtsp) {
        this.rtsp = rtsp;
    }

    public String getHttp() {
        return http;
    }

    public void setHttp(String http) {
        this.http = http;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getService() {
        return service;
    }

    public void setService(String service) {
        this.service = service;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public String getPurchaseTime() {
        return purchaseTime;
    }

    public void setPurchaseTime(String purchaseTime) {
        this.purchaseTime = purchaseTime;
    }

    public String getRtspHd() {
        return rtspHd;
    }

    public void setRtspHd(String rtspHd) {
        this.rtspHd = rtspHd;
    }

    public String getWulianNo() {
        return wulianNo;
    }

    public void setWulianNo(String wulianNo) {
        this.wulianNo = wulianNo;
    }
}
